﻿@model IEnumerable<ProjectManagement.Domain.Entities.Role>

@{
    ViewBag.Title = "角色列表";
	Layout = null;
}
<link href="@Url.Content("~/Content/table.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/themes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
<script src="@Url.Content("~/Scripts/jquery-1.7.2.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery-ui-1.8.22.min.js")" type="text/javascript"></script>
<script type="text/javascript">
	var message="@TempData["Message"]";
	if(message)
	{
		alert(message);
	}
	$(function() {
		$("input:submit, a, button",".demo").button();
	});
</script>
<div class="demo">
<div >
	<span>角色列表</span> &nbsp;&nbsp;@Html.ActionLink("新增", "CreateRole","RoleManage",null)
</div>
@using (Html.BeginForm("RoleList", "RoleManage", FormMethod.Post))
{
<div id="top">
	<label for="name">角色名：</label><input type="text" id="name" name="name"/> &nbsp;&nbsp;&nbsp;&nbsp;
	<label for="desption">描述：</label><input type="text" id="desption" name="desption"/>	&nbsp;&nbsp;&nbsp;&nbsp;
	<input type="submit" value="查询"/>&nbsp;&nbsp;&nbsp;&nbsp;
</div>
}
<div style="width:99%;padding-right:10px;padding-right:10px;">
<table width="100%" id="mytab"  border="1" class="t1">
    <thead>
		<th width="5%">
		</th>
        <th width="20%">
            角色名称
        </th>
        <th width="30%">
            角色描述
        </th>
        <th ></th>
    </thead>

@foreach (var item in Model) {
    <tr class="a1">
		<td>
			<input type="checkbox" />
		</td>
        <td>
            @Html.DisplayFor(modelItem => item.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Description)
        </td>
        <td>
            @Html.ActionLink("编辑", "EditRole","RoleManage",new { id=item.ID},null) |
            @Html.ActionLink("详细信息", "DetailsRole","RoleManage", new { id=item.ID },null) |
			@Html.ActionLink("删除", "DeleteRole","RoleManage", new { id=item.ID },null)
        </td>
    </tr>
}

</table>
</div>
</div>